﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Client.ViewModel;

namespace Client.View.userControl
{
    /// <summary>
    /// GainSlider.xaml에 대한 상호 작용 논리
    /// </summary>
    public partial class GainSlider : UserControl
    {
        public GainSlider()
        {
            InitializeComponent();
        }

        private void OcclusionLeftChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        {
            double value = (sender as Slider).Value;
            (this.DataContext as MainViewModel).Mode1_Occlusion_Left(value);
        }

        private void OcclusionRightChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        {
            double value = (sender as Slider).Value;
            (this.DataContext as MainViewModel).Mode1_Occlusion_Right(value);
        }
    }
}
